//
//  TMUserViewModel.h
//  国学培训用户端
//
//  Created by Tao Li on 2018/8/16.
//  Copyright © 2018年 mac. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void (^ SuccessBlock)(id responseObject);
typedef void (^ FailureBlock)(NSString *error);
typedef void (^ CompleteBlock)(id , id);
@interface TMUserViewModel : NSObject
-(void)getMyPageDataSuccess:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)getUserSettingsDataSuccess:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)changeNickName:(NSString *)nick Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)changeUserIcon:(NSString *)head Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)changeMail:(NSString *)mail Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)changePhone:(NSString *)mail AndCode:(NSString *)code Success:(SuccessBlock)success failed:(FailureBlock)failed;

-(void)BlindZSCard:(NSString *)name AndCard:(NSString *)card Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)BlindWX:(NSString *)name AndCard:(NSString *)card Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)BlindWB:(NSString *)name AndCard:(NSString *)card Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)BlindZFB:(NSString *)name AndCard:(NSString *)card Success:(SuccessBlock)success failed:(FailureBlock)failed;


-(void)getMyCourseSuccess:(SuccessBlock)success failed:(FailureBlock)failed;

-(void)getMyCourseDetailWith:(NSInteger)tid And:(NSInteger)oid Success:(SuccessBlock)success failed:(FailureBlock)failed;

-(void)getMyOrderWithStatus:(NSInteger)status Success:(SuccessBlock)success failed:(FailureBlock)failed;

-(void)getCommityCollectionPage:(NSInteger)page Success:(CompleteBlock)success failed:(FailureBlock)failed;
-(void)deleteCommityCollection:(NSString *)commityID Success:(SuccessBlock)success failed:(FailureBlock)failed;

-(void)getShopCollectionAndPage:(NSInteger)page Success:(CompleteBlock)success failed:(FailureBlock)failed;
-(void)deleteShopCollection:(NSInteger)commityID Success:(SuccessBlock)success failed:(FailureBlock)failed;

-(void)getFooterCollection:(NSInteger)commityID Page:(NSInteger)page Success:(CompleteBlock)success failed:(FailureBlock)failed;
-(void)deleteFooterCollection:(NSInteger)commityID Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)getShoppingCartSuccess:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)getMyDiscountSuccess:(SuccessBlock)success failed:(FailureBlock)failed;


-(void)getCommitCommendWith:(NSDictionary *)dic Success:(SuccessBlock)success failed:(FailureBlock)failed;

-(void)getCommitCollectionWith:(NSInteger)cid Success:(SuccessBlock)success failed:(FailureBlock)failed;

- (void)deleteShoppingCartParam:(id)fid Success:(SuccessBlock)block Failed:(FailureBlock)failre;
- (void)PaySuccessSuccess:(SuccessBlock)block Failed:(FailureBlock)failre;

- (void)getCourseOrderSuccessSuccess:(SuccessBlock)block Failed:(FailureBlock)failre;

- (void)getCourseOpenRemaindSuccessSuccess:(SuccessBlock)block Failed:(FailureBlock)failre;

- (void)getInvacationCodeWithSuccess:(SuccessBlock)success AndFiled:(FailureBlock)faild;
- (void)getInvacationMoneyWithSuccess:(SuccessBlock)success AndFiled:(FailureBlock)faild;

- (void)getComplaintWith:(NSString *)phone AndText:(NSString *)text Success:(SuccessBlock)success AndFiled:(FailureBlock)faild;
- (void)getComplaintBussinessWith:(NSDictionary *)param Success:(SuccessBlock)success AndFiled:(FailureBlock)faild;


- (void)getVipListWithSuccess:(CompleteBlock)success AndFiled:(FailureBlock)faild;
- (void)getVipOrderPayWithName:(NSDictionary *)dic Success:(SuccessBlock)success AndFiled:(FailureBlock)faild;
- (void)commitVipOrderWithName:(NSString *)name Success:(SuccessBlock)success AndFiled:(FailureBlock)faild;

- (void)getMoneyBackWith:(NSDictionary *)param Success:(SuccessBlock)success AndFiled:(FailureBlock)faild;
- (void)getSureCommpleteWith:(NSInteger)oid Success:(SuccessBlock)success AndFiled:(FailureBlock)faild;

-(void)getOrderCourseDetailWith:(NSInteger)tid And:(NSInteger)oid Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)getSysMessageSuccess:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)getMyCompalitList:(NSInteger)type Success:(SuccessBlock)success failed:(FailureBlock)failed;
-(void)getMyCanaleMoneyBack:(NSInteger)oid Success:(SuccessBlock)success failed:(FailureBlock)failed;
@end
